package com.jsh.erp.datasource.entities;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PromotionGiftExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PromotionGiftExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andItemIdIsNull() {
            addCriterion("item_id is null");
            return (Criteria) this;
        }

        public Criteria andItemIdIsNotNull() {
            addCriterion("item_id is not null");
            return (Criteria) this;
        }

        public Criteria andItemIdEqualTo(String value) {
            addCriterion("item_id =", value, "itemId");
            return (Criteria) this;
        }

        public Criteria andItemIdNotEqualTo(String value) {
            addCriterion("item_id <>", value, "itemId");
            return (Criteria) this;
        }

        public Criteria andItemIdGreaterThan(String value) {
            addCriterion("item_id >", value, "itemId");
            return (Criteria) this;
        }

        public Criteria andItemIdGreaterThanOrEqualTo(String value) {
            addCriterion("item_id >=", value, "itemId");
            return (Criteria) this;
        }

        public Criteria andItemIdLessThan(String value) {
            addCriterion("item_id <", value, "itemId");
            return (Criteria) this;
        }

        public Criteria andItemIdLessThanOrEqualTo(String value) {
            addCriterion("item_id <=", value, "itemId");
            return (Criteria) this;
        }

        public Criteria andItemIdLike(String value) {
            addCriterion("item_id like", value, "itemId");
            return (Criteria) this;
        }

        public Criteria andItemIdNotLike(String value) {
            addCriterion("item_id not like", value, "itemId");
            return (Criteria) this;
        }

        public Criteria andItemIdIn(List<String> values) {
            addCriterion("item_id in", values, "itemId");
            return (Criteria) this;
        }

        public Criteria andItemIdNotIn(List<String> values) {
            addCriterion("item_id not in", values, "itemId");
            return (Criteria) this;
        }

        public Criteria andItemIdBetween(String value1, String value2) {
            addCriterion("item_id between", value1, value2, "itemId");
            return (Criteria) this;
        }

        public Criteria andItemIdNotBetween(String value1, String value2) {
            addCriterion("item_id not between", value1, value2, "itemId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdIsNull() {
            addCriterion("gift_material_id is null");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdIsNotNull() {
            addCriterion("gift_material_id is not null");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdEqualTo(String value) {
            addCriterion("gift_material_id =", value, "giftMaterialId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdNotEqualTo(String value) {
            addCriterion("gift_material_id <>", value, "giftMaterialId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdGreaterThan(String value) {
            addCriterion("gift_material_id >", value, "giftMaterialId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdGreaterThanOrEqualTo(String value) {
            addCriterion("gift_material_id >=", value, "giftMaterialId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdLessThan(String value) {
            addCriterion("gift_material_id <", value, "giftMaterialId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdLessThanOrEqualTo(String value) {
            addCriterion("gift_material_id <=", value, "giftMaterialId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdLike(String value) {
            addCriterion("gift_material_id like", value, "giftMaterialId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdNotLike(String value) {
            addCriterion("gift_material_id not like", value, "giftMaterialId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdIn(List<String> values) {
            addCriterion("gift_material_id in", values, "giftMaterialId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdNotIn(List<String> values) {
            addCriterion("gift_material_id not in", values, "giftMaterialId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdBetween(String value1, String value2) {
            addCriterion("gift_material_id between", value1, value2, "giftMaterialId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialIdNotBetween(String value1, String value2) {
            addCriterion("gift_material_id not between", value1, value2, "giftMaterialId");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitIsNull() {
            addCriterion("gift_material_unit is null");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitIsNotNull() {
            addCriterion("gift_material_unit is not null");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitEqualTo(String value) {
            addCriterion("gift_material_unit =", value, "giftMaterialUnit");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitNotEqualTo(String value) {
            addCriterion("gift_material_unit <>", value, "giftMaterialUnit");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitGreaterThan(String value) {
            addCriterion("gift_material_unit >", value, "giftMaterialUnit");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitGreaterThanOrEqualTo(String value) {
            addCriterion("gift_material_unit >=", value, "giftMaterialUnit");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitLessThan(String value) {
            addCriterion("gift_material_unit <", value, "giftMaterialUnit");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitLessThanOrEqualTo(String value) {
            addCriterion("gift_material_unit <=", value, "giftMaterialUnit");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitLike(String value) {
            addCriterion("gift_material_unit like", value, "giftMaterialUnit");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitNotLike(String value) {
            addCriterion("gift_material_unit not like", value, "giftMaterialUnit");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitIn(List<String> values) {
            addCriterion("gift_material_unit in", values, "giftMaterialUnit");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitNotIn(List<String> values) {
            addCriterion("gift_material_unit not in", values, "giftMaterialUnit");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitBetween(String value1, String value2) {
            addCriterion("gift_material_unit between", value1, value2, "giftMaterialUnit");
            return (Criteria) this;
        }

        public Criteria andGiftMaterialUnitNotBetween(String value1, String value2) {
            addCriterion("gift_material_unit not between", value1, value2, "giftMaterialUnit");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdIsNull() {
            addCriterion("gift_me_id is null");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdIsNotNull() {
            addCriterion("gift_me_id is not null");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdEqualTo(String value) {
            addCriterion("gift_me_id =", value, "giftMeId");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdNotEqualTo(String value) {
            addCriterion("gift_me_id <>", value, "giftMeId");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdGreaterThan(String value) {
            addCriterion("gift_me_id >", value, "giftMeId");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdGreaterThanOrEqualTo(String value) {
            addCriterion("gift_me_id >=", value, "giftMeId");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdLessThan(String value) {
            addCriterion("gift_me_id <", value, "giftMeId");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdLessThanOrEqualTo(String value) {
            addCriterion("gift_me_id <=", value, "giftMeId");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdLike(String value) {
            addCriterion("gift_me_id like", value, "giftMeId");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdNotLike(String value) {
            addCriterion("gift_me_id not like", value, "giftMeId");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdIn(List<String> values) {
            addCriterion("gift_me_id in", values, "giftMeId");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdNotIn(List<String> values) {
            addCriterion("gift_me_id not in", values, "giftMeId");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdBetween(String value1, String value2) {
            addCriterion("gift_me_id between", value1, value2, "giftMeId");
            return (Criteria) this;
        }

        public Criteria andGiftMeIdNotBetween(String value1, String value2) {
            addCriterion("gift_me_id not between", value1, value2, "giftMeId");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeIsNull() {
            addCriterion("gift_bar_code is null");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeIsNotNull() {
            addCriterion("gift_bar_code is not null");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeEqualTo(String value) {
            addCriterion("gift_bar_code =", value, "giftBarCode");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeNotEqualTo(String value) {
            addCriterion("gift_bar_code <>", value, "giftBarCode");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeGreaterThan(String value) {
            addCriterion("gift_bar_code >", value, "giftBarCode");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeGreaterThanOrEqualTo(String value) {
            addCriterion("gift_bar_code >=", value, "giftBarCode");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeLessThan(String value) {
            addCriterion("gift_bar_code <", value, "giftBarCode");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeLessThanOrEqualTo(String value) {
            addCriterion("gift_bar_code <=", value, "giftBarCode");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeLike(String value) {
            addCriterion("gift_bar_code like", value, "giftBarCode");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeNotLike(String value) {
            addCriterion("gift_bar_code not like", value, "giftBarCode");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeIn(List<String> values) {
            addCriterion("gift_bar_code in", values, "giftBarCode");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeNotIn(List<String> values) {
            addCriterion("gift_bar_code not in", values, "giftBarCode");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeBetween(String value1, String value2) {
            addCriterion("gift_bar_code between", value1, value2, "giftBarCode");
            return (Criteria) this;
        }

        public Criteria andGiftBarCodeNotBetween(String value1, String value2) {
            addCriterion("gift_bar_code not between", value1, value2, "giftBarCode");
            return (Criteria) this;
        }

        public Criteria andGiftQuantityIsNull() {
            addCriterion("gift_quantity is null");
            return (Criteria) this;
        }

        public Criteria andGiftQuantityIsNotNull() {
            addCriterion("gift_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andGiftQuantityEqualTo(BigDecimal value) {
            addCriterion("gift_quantity =", value, "giftQuantity");
            return (Criteria) this;
        }

        public Criteria andGiftQuantityNotEqualTo(BigDecimal value) {
            addCriterion("gift_quantity <>", value, "giftQuantity");
            return (Criteria) this;
        }

        public Criteria andGiftQuantityGreaterThan(BigDecimal value) {
            addCriterion("gift_quantity >", value, "giftQuantity");
            return (Criteria) this;
        }

        public Criteria andGiftQuantityGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("gift_quantity >=", value, "giftQuantity");
            return (Criteria) this;
        }

        public Criteria andGiftQuantityLessThan(BigDecimal value) {
            addCriterion("gift_quantity <", value, "giftQuantity");
            return (Criteria) this;
        }

        public Criteria andGiftQuantityLessThanOrEqualTo(BigDecimal value) {
            addCriterion("gift_quantity <=", value, "giftQuantity");
            return (Criteria) this;
        }

        public Criteria andGiftQuantityIn(List<BigDecimal> values) {
            addCriterion("gift_quantity in", values, "giftQuantity");
            return (Criteria) this;
        }

        public Criteria andGiftQuantityNotIn(List<BigDecimal> values) {
            addCriterion("gift_quantity not in", values, "giftQuantity");
            return (Criteria) this;
        }

        public Criteria andGiftQuantityBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("gift_quantity between", value1, value2, "giftQuantity");
            return (Criteria) this;
        }

        public Criteria andGiftQuantityNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("gift_quantity not between", value1, value2, "giftQuantity");
            return (Criteria) this;
        }

        public Criteria andTenantIdIsNull() {
            addCriterion("tenant_id is null");
            return (Criteria) this;
        }

        public Criteria andTenantIdIsNotNull() {
            addCriterion("tenant_id is not null");
            return (Criteria) this;
        }

        public Criteria andTenantIdEqualTo(String value) {
            addCriterion("tenant_id =", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdNotEqualTo(String value) {
            addCriterion("tenant_id <>", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdGreaterThan(String value) {
            addCriterion("tenant_id >", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdGreaterThanOrEqualTo(String value) {
            addCriterion("tenant_id >=", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdLessThan(String value) {
            addCriterion("tenant_id <", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdLessThanOrEqualTo(String value) {
            addCriterion("tenant_id <=", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdLike(String value) {
            addCriterion("tenant_id like", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdNotLike(String value) {
            addCriterion("tenant_id not like", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdIn(List<String> values) {
            addCriterion("tenant_id in", values, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdNotIn(List<String> values) {
            addCriterion("tenant_id not in", values, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdBetween(String value1, String value2) {
            addCriterion("tenant_id between", value1, value2, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdNotBetween(String value1, String value2) {
            addCriterion("tenant_id not between", value1, value2, "tenantId");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagIsNull() {
            addCriterion("delete_flag is null");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagIsNotNull() {
            addCriterion("delete_flag is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagEqualTo(String value) {
            addCriterion("delete_flag =", value, "deleteFlag");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagNotEqualTo(String value) {
            addCriterion("delete_flag <>", value, "deleteFlag");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagGreaterThan(String value) {
            addCriterion("delete_flag >", value, "deleteFlag");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagGreaterThanOrEqualTo(String value) {
            addCriterion("delete_flag >=", value, "deleteFlag");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagLessThan(String value) {
            addCriterion("delete_flag <", value, "deleteFlag");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagLessThanOrEqualTo(String value) {
            addCriterion("delete_flag <=", value, "deleteFlag");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagLike(String value) {
            addCriterion("delete_flag like", value, "deleteFlag");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagNotLike(String value) {
            addCriterion("delete_flag not like", value, "deleteFlag");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagIn(List<String> values) {
            addCriterion("delete_flag in", values, "deleteFlag");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagNotIn(List<String> values) {
            addCriterion("delete_flag not in", values, "deleteFlag");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagBetween(String value1, String value2) {
            addCriterion("delete_flag between", value1, value2, "deleteFlag");
            return (Criteria) this;
        }

        public Criteria andDeleteFlagNotBetween(String value1, String value2) {
            addCriterion("delete_flag not between", value1, value2, "deleteFlag");
            return (Criteria) this;
        }

        public Criteria andUploadFlagIsNull() {
            addCriterion("upload_flag is null");
            return (Criteria) this;
        }

        public Criteria andUploadFlagIsNotNull() {
            addCriterion("upload_flag is not null");
            return (Criteria) this;
        }

        public Criteria andUploadFlagEqualTo(String value) {
            addCriterion("upload_flag =", value, "uploadFlag");
            return (Criteria) this;
        }

        public Criteria andUploadFlagNotEqualTo(String value) {
            addCriterion("upload_flag <>", value, "uploadFlag");
            return (Criteria) this;
        }

        public Criteria andUploadFlagGreaterThan(String value) {
            addCriterion("upload_flag >", value, "uploadFlag");
            return (Criteria) this;
        }

        public Criteria andUploadFlagGreaterThanOrEqualTo(String value) {
            addCriterion("upload_flag >=", value, "uploadFlag");
            return (Criteria) this;
        }

        public Criteria andUploadFlagLessThan(String value) {
            addCriterion("upload_flag <", value, "uploadFlag");
            return (Criteria) this;
        }

        public Criteria andUploadFlagLessThanOrEqualTo(String value) {
            addCriterion("upload_flag <=", value, "uploadFlag");
            return (Criteria) this;
        }

        public Criteria andUploadFlagLike(String value) {
            addCriterion("upload_flag like", value, "uploadFlag");
            return (Criteria) this;
        }

        public Criteria andUploadFlagNotLike(String value) {
            addCriterion("upload_flag not like", value, "uploadFlag");
            return (Criteria) this;
        }

        public Criteria andUploadFlagIn(List<String> values) {
            addCriterion("upload_flag in", values, "uploadFlag");
            return (Criteria) this;
        }

        public Criteria andUploadFlagNotIn(List<String> values) {
            addCriterion("upload_flag not in", values, "uploadFlag");
            return (Criteria) this;
        }

        public Criteria andUploadFlagBetween(String value1, String value2) {
            addCriterion("upload_flag between", value1, value2, "uploadFlag");
            return (Criteria) this;
        }

        public Criteria andUploadFlagNotBetween(String value1, String value2) {
            addCriterion("upload_flag not between", value1, value2, "uploadFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}